package org.example.redo.listener;

import org.example.redo.constant.Constants;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class DirectListener {
    @RabbitListener(queues = Constants.DIRECT_QUEUE1)
    public void receive1(String msg) {
        System.out.println("收到消息"+msg);
    }
}
